<?php
  require_once("../includes.php");
  $membership = New Membership();
  $membership->confirm_admin();

  $user_id = isset($_GET['id']) ? $_GET['id'] : '';
  $success = isset($_GET['success']) ? $_GET['success'] : false;

  include('../header.php');
?>

<div id='agenda'>

<?php if ($success) : ?>
<div id='message'>
  <h3>Verwijderen Geslaagd!</h3>
</div>
<?php endif; ?>

<div class="block">
  <h2 class="red">Verwijderen</h2>
  <div id="info">
    <?php echo Website::create_link("admin/","Administratie", "right"); ?>
    <?php echo Website::create_link("user/overzicht.php","Ledenoverzicht bekijken", "right"); ?>

    <form action="action.php" method="post">
      <h3>U kunt iemand uit deze lijst kiezen:</h3>

      <?php echo User::selection_all('Selecteer Iemand', 'keuze', $user_id); ?>

      <input type='hidden' name='action' value='delete'>
      <input type='submit' id='submitButton' value='Verwijderen'>
    </form>

  </div>
</div>
</div>
<?php include('../footer.php'); ?>